package test;

public class Student extends Person{
	public int no;
	public int age;
	public String sex;
	public String address;
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getNo() {
		return no;
	}
	public String toString() {
		return "Student [no=" + no + ", name=" + name + ", pwd=" + pwd +", QQ=" + QQ +", age=" + age + ", address=" + address + ", sex=" + sex
				+ ", recievePort=" + recievePort+ ", sendPort=" + sendPort+"]";
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Student( int no,String name, String pwd, String qQ, int age, String sex, String address,int recievePort,int sendPort) {
		super(name, pwd, qQ);
		this.age = age;
		this.sex = sex;
		this.no = no;
		this.address = address;
		this.recievePort=recievePort;
		this.sendPort=sendPort;
	}
	public Student(String name, String pwd) {
		super(name, pwd);
	}
	public Student() {
		super();
	}
}
